package com.travel.server.manager.impl.controller;

import com.travel.server.manager.api.ILoginService;
import com.travel.server.manager.impl.controller.base.AbstractController;
import com.travel.server.manager.dto.request.EmptyRequest;
import com.travel.server.manager.dto.request.login.LoginRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiZhenhui
 * @Date: 2018/10/17 16:42
 * @Desc:
 */
@RestController
@Slf4j
public class LoginController extends AbstractController implements ILoginService {

    @Override
    public Object login(@RequestBody LoginRequest request){
        return this.getCommand().handle(request);
    }

    @Override
    public Object refreshVerifyCode(@RequestBody EmptyRequest request) {
        return this.getCommand().handle(request);
    }
}
